function Person(h='190cm',w='80kg',a='18'){
    this.height = h;
    this.weight = w;
    this.age = a;
}
Person.prototype.havename = function(name){
    this.name = name;
}

// 静态方法
Person.jump = function(){
    console.log("跳一跳");
}
function Boyfriend(h,w,a){
    // 继承属性
    Person.call(this,h,w,a)
    this.hobby = ['篮球','LOL']
}
// 继承父类原型方法
Boyfriend.prototype = new Person();
Boyfriend.constructor = Boyfriend;

Boyfriend.prototype.run = function(){
    console.log("跑了");
}


